<?php 	
		include_once './function.php';

		$users = include_once './save.php';
		foreach ($users as $user) {
			if ($user['username']==$_POST['username']) {
				if ($user['password']==md5($_POST['password'])) {
					echo "登录成功";
					session_start();
					$_SESSION['username'] = $user['username'];
					$_SESSION['nikename'] = $user['nikename'];
					success('你登录成功','./index.php',3);//跳转函数
				}
			}
		}

		error('你登录失败请重新登录','./Tpl/login.html',3);















 ?>